<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Calc</title>
</head>
<body>
<form action="calc/sum" method="post">
    <h1>计算器</h1>
    数字1：<input name="num1" type="text"><br>
    数字2：<input name="num2" type="text"><br>
    <input type="submit" value=" 点击相加 ">
    <input type="submit" value = "点击相减" onclick="javascript: form.action='/calc/sub';">
    <input type="submit" value = "点击相乘" onclick="javascript: form.action='/calc/multiply';">
    <input type="submit" value = "点击相除" onclick="javascript: form.action='/calc/div';">
</form>
</body>

</html>